@extends('backend.assets.master')

@section('page-title', "访问记录")

@section('page-content')
<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<!-- BEGIN PAGE CONTAINER-->
<div class="container-fluid">
    <!-- BEGIN PAGE HEADER-->
    <div class="row-fluid">
        <div class="span12">
            <!-- BEGIN PAGE TITLE & BREADCRUMB-->
            <h3 class="page-title">
                Blank Page <small>blank page</small>
            </h3>
            <ul class="breadcrumb">
                <li>
                    <i class="icon-home"></i>
                    <a href="index.html">Home</a>
                    <i class="icon-angle-right"></i>
                </li>
                <li>
                    <a href="#">Layouts</a>
                    <i class="icon-angle-right"></i>
                </li>
                <li><a href="#">Blank Page</a></li>
            </ul>
            <!-- END PAGE TITLE & BREADCRUMB-->
        </div>
    </div>
    <!-- END PAGE HEADER-->
    <!-- BEGIN PAGE CONTENT-->
    <div class="row-fluid">
        <div class="col-md-12">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th class="span4">URL</th>
                    <th>AJAX请求</th>
                    <th>客户端IP</th>
                    <th>请求时间</th>
                    <th>请求代理</th>
                </tr>
                </thead>
                <tbody>
                @foreach($records as $record)
                <tr>
                    <td>{{ $record->full_uri }}</td>
                    <td>{{ $record->is_ajax ? '是' : '否' }}</td>
                    <td>{{ $record->client_ip }}</td>
                    <td>{{ $record->request_time }}</td>
                    <td>{{ $record->user_agent }}</td>
                </tr>
                @endforeach
                </tbody>
            </table>
            {!! $records->render() !!}
        </div>
    </div>
    <!-- END PAGE CONTENT-->
</div>
<!-- END PAGE CONTAINER-->
@stop
